@use "@/assets/styles/mixin";

.judgment-manager {
  height: 100%;
  overflow-y: scroll;
}

.add-order-container-white {
  height: 20px;
  background: #f5f7fa;
  border-radius: 0px 0px 0px 0px;
  margin: 20px -20px 0 -20px;
}

.all_container {
  width: 100%;
  height: 100%;
  display: flex;
  // margin: 0 20px 0 20px
}

.order_detail--container {
  width: 100%;
  height: 100%;
  border-radius: 10px 10px 10px 10px;
  position: relative;
}

.image_video_preview {
  position: absolute;
  left: 50%;
  /* 左边距设为 50% */
  top: 50%;
  /* 顶边距设为 50% */
  transform: translate(-50%, -50%);
  /* 将其移动自身宽高的一半，真正居中 */
  z-index: 100;
}

.judgment-status {
  @include mixin.flex-inline-flex;
  height: 24px;
  padding: 0 5px;
  min-width: 50px;
  border-radius: 2px;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  margin-left: 20px;
  border-radius: 3px 3px 3px 3px;

  &-info {
    color: #606266;
  }

  &-danger {
    color: #ff3333;
  }

  &-primary {
    color: #007DFF;
  }

  &-success {
    color: #0AC905;
  }

  &-dashed {
    color: #DCDFE6;
  }

  &-warning {
    color: #FF8928;
  }
}

.reform-state {
  @include mixin.flex-inline-flex;
  height: 24px;
  padding: 0 5px;
  min-width: 50px;
  border-radius: 2px;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  margin-left: 20px;
  border-radius: 3px 3px 3px 3px;

  &-info {
    background-color: #dcdfe6;
    color: #606266;
  }

  &-warning {
    background-color: #fff0d9 !important;
    color: #ff9900 !important;
  }

  &-danger {
    background-color: #ffc7c7;
    color: #ff3333;
  }

  &-primary {
    background-color: #d9edff;
    color: #409eff;
  }

  &-success {
    background-color: #e3f9e9;
    color: #14c85c;
  }
}

.order_detail {
  &--container {
    @include mixin.flex-column;
    background: #ffffff;
    height: 100%;
  }

  &--header {
    @include mixin.flex-between;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #ebeef5;
  }

  &--body {
    background: #ffffff;
    padding: 20px;
    position: relative;
    flex: 1;
    overflow: auto;
    margin-bottom: 20px;
  }

  &--title {
    @include mixin.flex-align;
    height: 54px;
    width: 100%;
    background: #ffd8d2;

    .detail_title_item {
      height: 22px;
      width: 75px;
      margin-left: 24px;
      font-size: 14px;
      font-weight: 600;
      color: #3d3d3d;
      line-height: 22px;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }

    .detail_title_right {
      position: relative;
      width: calc(100% - 95px);

      .title_right {
        position: absolute;
        right: 24px;
        /* 设置距离右侧的距离 */
        top: 50%;
        /* 将按钮框体顶部对齐至父容器中心 */
        transform: translateY(-50%);
        /* 在垂直方向上居中 */
        color: #007dff;
      }
    }
  }

  &--divider {
    width: 4px;
    height: 40px;
    background: #dcdfe6;
  }

  &--titlenew {
    @include mixin.flex-center(space-between, center);
    padding: 17px 29px;
    background: #f6f8fa;
    color: #3d3d3d;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  &--amount {
    flex-basis: 33.33%;
    /* 每个金额占宽度的三分之一 */
    text-align: center;
    /* 文本水平居中 */
  }

  &--dividernew {
    width: 4px;
    height: 40px;
    background: #dcdfe6;
  }

  &--row {
    margin-top: 10px;
    color: #1a1a1a;

    :deep(.el-col) {
      padding: 0 !important;
      height: 80px;
      text-align: center;
      line-height: 80px;
      border-left: 1px solid #dcdfe6;
      border-top: 1px solid #dcdfe6;
      box-sizing: border-box;
    }
  }

  &--borderbottom {
    border-bottom: 1px solid #dcdfe6;
  }

  &--borderright {
    border-right: 1px solid #dcdfe6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &--bgcorlor {
    background: #f6f8fa;
    color: #86909c;
  }

  &--line {
    color: #007dff;
    text-decoration-line: underline;
    cursor: pointer;
  }
}

.order_table {
  width: 100%;

  &--title {
    @include mixin.flex-align;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;

    .left {
      width: 60px;
    }

    .sum {
      width: calc(100% - 99px);
      display: flex;
      justify-content: space-between;
      align-items: center;

      span {
        color: #1d2129;
      }
    }
  }

  &--show {
    @include mixin.flex-center(space-between, center);
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

.order_show {
  color: #007dff;
  font-size: 14px;
  cursor: pointer;

  &--container {
    background: #f6f8fa;
    padding: 20px 20px 0 20px;

    .flex {
      display: flex;
      margin-bottom: 20px;
    }
  }

  &--img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-right: 16px;
  }

  &--video {
    width: 118px;
    height: 82px;
    border-radius: 4px 4px 4px 4px;
    margin-right: 16px;
    margin-bottom: 20px;
  }
}

.ellipsis {
  padding: 0 10px;
  overflow: hidden;
  /*内容超出后隐藏*/
  text-overflow: ellipsis;
  /*超出内容显示为省略号*/
  white-space: nowrap;
  /*文本不进行换行*/
}

.tooltip {
  position: absolute;
  background-color: black;
  color: white;
  padding: 5px;
  border-radius: 3px;
  white-space: normal;
  /* 允许换行 */
  z-index: 1;
}

.ellipsis:hover .tooltip {
  display: block;
  /* 鼠标悬停时显示 */
}

.order_detail_left {
  display: flex;
  align-items: center;
  height: 32px;
}

.order_body--title {
  display: flex;
  justify-content: space-between;
  height: 24px;
  width: 100%;

  .order_body--titleleft {
    font-weight: 600;
    font-size: 16px;
    color: #080808;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }

  .order_body--titleright {
    margin-left: 10px;
    font-size: 16px;
    color: #86909c;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }

  .order_body--rightpztitle {
    display: flex;
  }

  .order_body_rightpztitleone {
    margin-right: 32px;
    font-weight: 400;
    font-size: 16px;
    color: #080808;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
}

.table_head {
  background: #f2f6fc;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e1e6ed;

  &--col {
    padding: 10px 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.tablerow_body {
  &--col {
    outline: 1px solid #e1e6ed;
    text-align: center;
    background: white;
    height: 73px;
    position: relative;
  }

  &--foot {
    outline: 1px solid #e1e6ed;
    padding: 0;
    display: flex;
  }

  &--footother {
    height: 44px;
    outline: 1px solid #e1e6ed;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  &--footline {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 2px;
    background: #e1e6ed;
  }

  &--footbtn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 19px;
    flex-wrap: wrap;
  }

  &--footbtnchild {
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  &--foottext {
    width: 480PX;
    height: 22px;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 12px;
    color: #4e5969;
    line-height: 22px;
    padding: 10px 16px 10px 12px;
    overflow: hidden;
    /*内容超出后隐藏*/
    text-overflow: ellipsis;
    /*超出内容显示为省略号*/
    white-space: nowrap;
    /*文本不进行换行*/
  }

  &--footadd {
    height: 50px;
    border-radius: 0px 0px 0px 0px;
    border: 1px solid #e1e6ed;
    background: #ffffff;
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  &--select {
    margin: 21px 15px 20px 18px;
    height: 32px;
    width: calc(100% - 36px);
    position: relative;

    :deep(.el-select__wrapper) {
      background: #f2f3f5;
      border-radius: 2px 2px 2px 2px;
    }

    :deep(.el-input__wrapper) {
      background: #f2f3f5;
      border-radius: 2px 2px 2px 2px;
    }
  }

  &--required {
    position: absolute;
    /* 设置星号为绝对定位 */
    left: -10px;
    /* 可以根据需求调整位置 */
    top: 50%;
    /* 垂直居中 */
    transform: translateY(-50%);
    /* 确保真正居中 */
    color: red;
    /* 红色星号 */
  }

  &--selectdiv {
    height: 32px;
    width: 100%;
    border-radius: 2px 2px 2px 2px;
    border: 1px solid #f2f3f5;
    position: relative;
  }

  &--divline {
    position: absolute;
    top: 13%;
    left: 0%;
    width: 17px;
    height: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #86909c;
    line-height: 22px;
    margin-left: 10px;
  }

  &--pztext {
    cursor: pointer;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #007dff;
    margin-left: 3px;
  }

  &--del {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #007dff;
  }
}

.statuscolor {
  &-info {
    color: #606266;
  }

  &-danger {
    color: #ff3333;
  }

  &-primary {
    color: #007DFF;
  }

  &-success {
    color: #0AC905;
  }

  &-dashed {
    color: #DCDFE6;

  }

  &-warning {
    color: #FF8928;
  }
}

.foot {
  height: 50px;
  background: #ffffff;
  box-shadow: 0px -5px 10px 0px rgba(66, 78, 102, 0.15);
  border-radius: 0px 0px 10px 0px;
  position: absolute;
  bottom: 0px;
  /* 距离底部 0px */
  left: -20px;
  /* 从左侧开始 */
  right: 0;
  display: flex;
  justify-content: flex-end;

  .foot_footright {
    @include mixin.flex-center;

    .foot_footright_cancle {
      cursor: pointer;
      /* 设置鼠标悬停时的光标样式 */
      @include mixin.flex-center;
      width: 120px;
      height: 36px;
      background: #f2f3f5;
      border-radius: 2px 2px 2px 2px;
      margin-right: 16px;

      .text {
        width: 28px;
        height: 22px;
        font-family: PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #1d2129;
        line-height: 22px;
        text-align: left;
        font-style: normal;
        text-transform: none;
      }
    }

    .foot_footright_sure {
      cursor: pointer;
      /* 设置鼠标悬停时的光标样式 */
      @include mixin.flex-center;
      margin-right: 20px;
      width: 120px;
      height: 36px;
      background: #007dff;
      border-radius: 2px 2px 2px 2px;

      .text {
        width: 28px;
        height: 22px;
        font-family: PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #ffffff;
        line-height: 22px;
        text-align: right;
        font-style: normal;
        text-transform: none;
      }
    }
  }
}

// 下拉框搜索框样式
.content-item-search {
  display: flex;
  align-items: center;


  :deep(.el-input__wrapper) {
    border: 0;
    box-shadow: none;
    outline: 0;
    background-color: #fff !important;

    &:hover {
      box-shadow: none;
    }

    &.is-focus {
      box-shadow: none;
    }
  }

  :deep(.svg-icon) {
    margin-right: 5px;
    cursor: pointer;
  }
}
